package com.yootk.config;

import com.yootk.listener.Emp;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class EmpConfig {
    @Scope("prototype")
    @Bean
    public Emp emp(){
        Emp emp = new Emp() ;
        emp.setEname("缍三");
        emp.setSalary(-33);
        return emp ;
    }
}
